package com.joker.orange.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 消费记录视图对象 t_consumption_record
 *
 * @author Joker
 * @date 2024-06-09
 */
@Data
@ExcelIgnoreUnannotated
public class ConsumptionRecordVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID")
    private Long productId;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称")
    private String productName;

    /**
     * 消费类型（0-视频、1-小说、2-漫画、3-动漫）
     */
    @ExcelProperty(value = "消费类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-视频、1-小说、2-漫画、3-动漫")
    private String consumptionType;

    /**
     * 消费金额
     */
    @ExcelProperty(value = "消费金额")
    private BigDecimal consumptionAmount;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
